﻿/**
 *商家分享收藏类 
 */

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using FoodRaidersWebAPI.domainnew.Article;

namespace FoodRaidersWebAPI.domainnew.Favorite
{
    public class FavoriteMerchantArticle
    {
        [Key]
        public int FavoriteMerchantArticleID { get; set; }
        public DateTime DateTime { get; set; }//收藏日期
        public int UserID { get; set; }//所属用户
        
        //MerchantArticle外键
        [ForeignKey("MerchantArticle")]
        public int MerchantArticleID { get; set; }
        public MerchantArticle MerchantArticle { get; set; }
    }
}